PREFIX ?=/install/bin/
APPNAME=my_main

LIBPATH=`pwd`/install/lib/
LIBPATH1=`pwd`/install/include/
CFLAGS+=-I${LIBPATH1}
LDFLAGS+=-L${LIBPATH}
LDFLAGS+=-static
CC=gcc
all:
	${CC} ${CFLAGS} my_main.c -o ${APPNAME} ${LDFLAGS} -llogger
clean:
	rm -f ${APPNAME}
run:
	export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:LIBPATH
	./${APPNAME}
install:
	mkdir  ${PREFIX}
	cp ${APPNAME} ${PREFIX}